package com.gyh.stlserver.service;

import com.github.pagehelper.PageInfo;
import com.gyh.stlserver.entity.Member;

import java.util.List;

public interface MemberService {
    PageInfo<Member> getAllMember(Integer pageNum, Integer pageSize, Member member);

    int addMember(Member member);

    Member checkName(String name);

    Member checkPhone(String phone);

    Member getMemberById(Integer id);

    int editMember(Member member);

    int remove(Integer id);

    int removeByIds(Integer[] ids);

    List<Member> getAll();

    int payBalance(Double balance, Integer memberId);

    int consumeBalance(Double balance, Integer memberId);
}
